package com.authorization.demo.service;

import com.authorization.demo.entity.UserTable;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

public interface UserTableService extends IService<UserTable> {
    boolean FindOneIsExist(String userName);

    void ExcelImport(File file) throws IOException, InvalidFormatException;

    void exportUsers(String[] userNames) throws IOException;

    //导入用户数据
    void importExcel(MultipartFile file, UserTableService userService);

    //导出用户数据
    void exportExcel(HttpServletResponse response, String[] userNames);

}
